home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Development Platforms / Apple II / Essentials / Technical.Notes / IIGS / TN.IIGS.067 < prev    next >
Encoding:
Text File  |  1992-07-15  |  6.6 KB  |  131 lines  |  [TEXT/GEOL]

  1. Apple II
  2. Technical Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5. Apple IIgs
  6. #67: LaserWriter Font Mapping
  7.  
  8. Revised by: Matt Deatherage                                          May 1992
  9. Written by: Suki Lee & Jim Luther                              September 1989
  10.  
  11. This Technical Note discusses the methods used by the Apple IIgs Print Manager
  12. to map IIgs fonts to the PostScript(R) fonts available with an Apple
  13. LaserWriter printer.
  14.  
  15. CHANGES SINCE NOVEMBER 1989:  Corrected some typographical errors and added
  16. Carta and Sonata, two fonts the LaserWriter driver knows about but aren't
  17. built into any LaserWriter.
  18. _____________________________________________________________________________
  19.  
  20.  
  21. Version 2.2 and earlier of the Apple IIgs LaserWriter driver depend solely
  22. upon font family numbers as unique font identifiers.  There is a table built
  23. into the driver which maps the known font family numbers to the built-in
  24. LaserWriter family fonts.  Any fonts which are not built-in are created in the
  25. printer from its bitmap font strike.  Under this implementation, all font
  26. family numbers not known at the time the driver was written print using bitmap
  27. fonts.  This driver knows nothing of any other fonts which may reside in the
  28. printer.
  29.  
  30. There have been many requests for the driver to take advantage of other
  31. available PostScript fonts to get high quality output from the LaserWriter.
  32. PostScript fonts from Adobe's font library, or from other PostScript font
  33. manufacturers, can be downloaded to the printer from a Macintosh and remain in
  34. the printer for use until power off.  Currently there is no means to download
  35. a PostScript font with an Apple IIgs.
  36.  
  37. The Apple IIgs LaserWriter driver version 3.0 and later makes use of most
  38. resident PostScript fonts in the LaserWriter when requested.  If the font is
  39. not available, then the bitmap font is used.  The driver queries the printer
  40. at the start of a job for the font directory listing.  The listing consists of
  41. names of all the fonts in the printer, built-in or downloaded.  This
  42. information is kept locally for look up using the name of the requested font.
  43.  
  44.  
  45. ISSUES
  46.  
  47. All Apple IIgs fonts contain a family name and a family number.  The Apple
  48. IIgs currently identifies fonts using the family number; however, this
  49. identification method may change in the future, due to the complexity of
  50. tracking unique matches between font family names and font family numbers.
  51.  
  52. PostScript identifies its fonts by name (case sensitive) and knows nothing of
  53. any font family numbering system, Macintosh or Apple IIgs, which might be
  54. attached to a particular font.  Most PostScript font families include plain,
  55. bold, italic and bold italic fonts.  Some fonts families may also have serif
  56. and sans serif fonts or fonts of different weights (line thickness).  These
  57. fonts are generally named by adding a style suffix to the base family name.
  58. Unfortunately, there is no uniform method for naming fonts, since most fonts
  59. were named by their designers and many of the names have historical
  60. significance.
  61. The three examples shown in Table 1 show three variations of the plain font,
  62. two variations of the bold style, three variations of the italic style, and
  63. three variations of the bold italic style.  There are others such as
  64. ZapfChancery-MediumItalic, Korinna-KursivRegular, and LetterGothic-Slanted
  65. which all denote the italic style of the respective font family.
  66.  
  67. Style          Font names
  68. -----------------------------------------------------------------------------
  69. plain          Helvetica             Times-Roman       AvantGarde-Book
  70. bold           Helvetica-Bold        Times-Bold        AvantGarde-Demi
  71. italic         Helvetica-Oblique     Times-Italic      AvantGarde-BookOblique
  72. bold italic    Helvetica-BoldOblique Times-BoldItalic  AvantGarde-DemiOblique
  73. -----------------------------------------------------------------------------
  74.                           Table 1-Example Font Names
  75.  
  76. The Macintosh LaserWriter driver uses a mapping scheme to compose a full
  77. PostScript font name.  It relies on the Font Family Definition Record 'FOND'
  78. resource to provide a style mapping table containing the appropriate suffixes.
  79.  
  80. There are no similar resources on the Apple IIgs, which means the Apple IIgs
  81. LaserWriter driver has no way to match PostScript fonts to Apple IIgs fonts.
  82. Instead, the Apple IIgs LaserWriter driver adopts the following approach.  The
  83. driver has full knowledge of all LaserWriter family built-in fonts (see Table
  84. 2 for a list of these built-in fonts) plus Carta and Sonata (two graphical
  85. fonts used in map and music programs) and uses the correct name for all style
  86. variations of the fonts.  For all other fonts, the driver uses a standard set
  87. of suffixes for the style modifications.  These suffixes are -Bold, -Italic,
  88. and -BoldItalic.  The appropriate suffix is appended to the family name of the
  89. font, and this name is used to search the font directory table obtained from
  90. querying the printer.  If a match is found, the document is printed using the
  91. corresponding PostScript font.  If no match is found, then the driver tries to
  92. find the plain form of the font and creates the style modification in
  93. PostScript.  A bitmap of the font is downloaded to the printer if these two
  94. searches fail.
  95.  
  96. If you are shipping your application with the intention of taking advantage of
  97. PostScript fonts when printing to a LaserWriter, please be sure to provide an
  98. Apple IIgs font whose family name is identical to the PostScript font family
  99. name.
  100.  
  101.     All LaserWriters       LaserWriter Plus and LaserWriter II
  102.     ---------------------------------------------------------------
  103.     Courier                AvantGarde          Palatino
  104.     Carta                  Bookman             Symbol
  105.     Helvetica              Courier             Times
  106.     Sonata                 Helvetica           ZapfChancery
  107.     Symbol                 Helvetica-Narrow    ZapfDingbats
  108.     Times                  NewCenturySchlbk
  109.     ---------------------------------------------------------------
  110.                 Table 2-Built-in LaserWriter Fonts
  111.  
  112.  
  113. Further Reference
  114. _____________________________________________________________________________
  115.  
  116.    o   Apple IIgs Toolbox Reference, Volumes 1 & 2
  117.    o   Apple LaserWriter Reference
  118.  
  119. Carta is a trademark of Adobe Systems Incorporated.
  120.  
  121. PostScript and Sonata are registered trademarks of Adobe Systems Incorporated.
  122.  
  123. Helvetica(R), Palatino(R), and Times(R) are registered trademarks of Linotype
  124. Co.
  125.  
  126. ITC Avant Garde(R), ITC Bookman(R), ITC Zapf Chancery(R), and ITC Zapf
  127. Dingbats(R) are registered trademarks of International Typeface Corporation.
  128.  
  129.  
  130.  
  131.